#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
int main()
{
	char arr[10]= "abcdefghw";
	int left = 0;
	int right =strlen(arr)-1;
	char c;

	int i = 0;
	int j = 9;
	/*while (left<right)*/for (i = 0, j = 9; i<j; i++, j--)
	{
		c = arr[left];
		arr[left] = arr[right];
		arr[right] = c;
		left++;
		right--;
	}
	for (i = 0; i < strlen(arr); i++)
	{
		printf("%c", arr[i]);
	}
	
	return 0;
}
